﻿using DataBase;
using DataBase.DBmodels;
using Prism.Commands;
using Prism.Mvvm;
using System.Collections.ObjectModel;
using ZedGraph;

namespace GreenXi.Model
{
    public class MonitoringModel : BindableBase
    {
        #region 操作
        public DelegateCommand AddColumn { get; set; }

        public DelegateCommand OpenCuve { get; set; }


        public DelegateCommand<object> DelColumn { get; set; }

        public DelegateCommand<object> UpdateColumn { get; set; }
        public DelegateCommand<object> AlertDecision { get; set; }
        public DelegateCommand<object> SwitchPress { get; set; }
        public DelegateCommand<object> ImageClickCommand { get; set; }
        public DelegateCommand<object> Draw { get; set; }

        public DelegateCommand<object> SelectFilter { get; set; }



        #endregion

      

        #region 表格数据绑定

        private string _IsVisibility = "Collapsed";
        public string IsVisibility
        {
            get { return _IsVisibility; }
            set { SetProperty(ref _IsVisibility, value); }
        }

        private ObservableCollection<DataBase.DecisionType> _imagePaths;

        public ObservableCollection<DataBase.DecisionType> ImagePaths
        {
            get => _imagePaths;
            set
            {
                SetProperty(ref _imagePaths, value);
            }
        }
        private ZedGraphControl? _zedGraphControl;
        public ZedGraphControl? zedGraphControl
        {
            get => _zedGraphControl;
            set
            {
                SetProperty(ref _zedGraphControl, value);
            }
        }
        private ObservableCollection<DataBase.Decision>? _TableList;
        public ObservableCollection<DataBase.Decision>? TableList
        {
            get => _TableList;
            set
            {
                SetProperty(ref _TableList, value);
            }
        }

        private bool _Press1;
        public bool Press1
        {
            get => _Press1;
            set
            {
                SetProperty(ref _Press1, value);
            }
        }
        private bool _Press2;
        public bool Press2
        {
            get => _Press2;
            set
            {
                SetProperty(ref _Press2, value);
            }
        }
        private bool _Press3;
        public bool Press3
        {
            get => _Press3;
            set
            {
                SetProperty(ref _Press3, value);
            }
        }
        private bool _Press4;
        public bool Press4
        {
            get => _Press4;
            set
            {
                SetProperty(ref _Press4, value);
            }
        }


        private string _CylinderNo;
        public string CylinderNo
        {
            get => _CylinderNo;
            set
            {
                SetProperty(ref _CylinderNo, value);
            }
        }


        #endregion

    }
}
